package com.ahcloud.edas.gatewaylog.biz.infrastructure.log;

import com.ahcloud.edas.gatewaylog.biz.domain.log.dto.GatewayRequestLogDTO;
import com.ahcloud.edas.gatewaylog.biz.infrastructure.configuration.OperateLogProperties;
import com.ahcloud.edas.gatewaylog.biz.infrastructure.log.client.DbLogCollectClient;
import com.ahcloud.edas.gatewaylog.biz.infrastructure.log.client.LogConsumeClient;

/**
 * @program: ahcloud-operatelog
 * @description:
 * @author: YuKai Fan
 * @create: 2024/5/26 22:23
 **/
public class DbLogCollector extends AbstractLogCollector<DbLogCollectClient, GatewayRequestLogDTO>{
    private final DbLogCollectClient logConsumeClient;

    public DbLogCollector(OperateLogProperties properties, DbLogCollectClient logConsumeClient) {
        super(properties);
        super.start();
        this.logConsumeClient = logConsumeClient;
    }

    @Override
    protected DbLogCollectClient getLogConsumeClient() {
        return logConsumeClient;
    }
}
